from django import forms
from app01 import models
from app01.utils.script.bootstrap import BootStrapForm
class LevelModel(BootStrapForm, forms.Form):
    title = forms.CharField(label="标题", required=True)
    present = forms.CharField(
        label="折扣",
        required=True,
        help_text="填入数字，表示百分比"
    )

class LevelModelForm(forms.ModelForm):
    class Meta:
        model = models.Leval
        fields = ["title","present"]




